﻿namespace OpenCompiler.Scanning.Scanners
{
	public class FormatterScanner : StringMatchTokenScanner
	{
		public FormatterScanner()
		{
			this.AddGrammar(Formatting.ScopeStart, "{");
			this.AddGrammar(Formatting.ScopeEnd, "}");
			this.AddGrammar(Formatting.LineEnd, ";");
			this.AddGrammar(Formatting.Newline, "\n\r");
			this.AddGrammar(Formatting.Newline, "\n");
			this.AddGrammar(Formatting.ParanthesisStart, "(");
			this.AddGrammar(Formatting.ParanthesisEnd, ")");
			this.AddGrammar(Formatting.Comma, ",");
			this.AddGrammar(Formatting.IndexStart, "[");
			this.AddGrammar(Formatting.IndexEnd, "]");
			this.Initialize();
		}

	}
}
